<?php
class OS extends Zend_Db_Table {
	
	protected $_name = 'os';
	
	public function getNextId(){  
        $select = $this->select();
		$select->from($this, 'nextval(\'seq_os\') as nextid ,max(id) as lastid');
		$x = $this->fetchRow($select)->toArray();
		return $x["nextid"];
    } 
}
?>